package com.cst.emos.wx.config.shiro;

import org.springframework.stereotype.Component;

/**
 * @author : CST
 */
@Component
public class ThreadLocalToken {
    private ThreadLocal Local = new ThreadLocal();

    public String getToken() {
        return (String) Local.get();
    }

    public void setToken(String token) {
        Local.set(token);
    }
    public void clear(){
        Local.remove();
    }
}
